﻿@model IEnumerable<SGC_CarteraClientes.Models.CA_PARAMETRO_CAMPANIA>

@{
    ViewBag.Title = "Index";
}

<h2>Parámetros de Campaña</h2>
@if (TempData["message"] != null && TempData["message"].ToString().Trim()!="")
{
@Html.Raw(TempData["message"].ToString())
//@TempData["message"] = null;
} 
<hr />
    @Html.ActionLink("Nuevo", "Create")
        @Html.ActionLink("Volver", "../")   

<table class="tblSort" rules="all">
    <thead>
    <tr>
        <th>
            <!-- @Html.DisplayNameFor(model => model.PARAM_ID)-->
            ID
        </th>
        <th>
            @* @Html.DisplayNameFor(model => model.PARAM_DES) *@
            Descripcion
        </th>
        <!-- 
        <th>
            @Html.DisplayNameFor(model => model.PARAM_DCTOMAX)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PARAM_DCTOMIN)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PARAM_COMISION)
        </th>
        <th>
            @Html.DisplayNameFor(model => model.PARAM_VIGENCIA)
        </th>
            -->
        <th>
            @* @Html.DisplayNameFor(model => model.PARAM_ESTADO) *@
            Estado
        </th>
        <th></th>
    </tr>
        </thead>
    <tbody>
@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.PARAM_ID)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PARAM_DES)
        </td>
        <!-- 
        <td>
            @Html.DisplayFor(modelItem => item.PARAM_DCTOMAX)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PARAM_DCTOMIN)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PARAM_COMISION)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.PARAM_VIGENCIA)
        </td>
            -->
        <td>
            @if (item.PARAM_ESTADO == "1") { 
              <img src="/Images/active.png"  width="25px" />   
            }
            else {
              <img src="/Images/inactive.png"  width="25px" />   
            }
          @* @Html.DisplayFor(modelItem => item.PARAM_ESTADO) *@
        </td>
        <td>
            @Html.ActionLink("Modificar", "Edit", new {  id=item.PARAM_ID }) 
            @*@Html.ActionLink("Details", "Details", new { /* id=item.PrimaryKey */ }) *@
            @Html.ActionLink("Desactivar", "Delete", new { id=item.PARAM_ID })
        </td>
    </tr>
}

        </tbody>
</table>
